<?php
    include_once "conn.php";
    $id = $_POST['del'];
    //查询分类
    $sql_cata = "SELECT catalog.name FROM catalog join video on video.catalog = catalog.id where video.id =".$id;
    $query1 = mysqli_query($conn,$sql_cata);
    while($row1 = mysqli_fetch_array($query1)){
        $name = $row1['name'];
    }
    //查询视频
    $sql = "SELECT * FROM video WHERE id =".$id;
    $query = mysqli_query($conn,$sql);
    while($row = mysqli_fetch_array($query)){
?>
    <div>名称:<?php echo $row['name'];?>;</div>
    <div>分类:<?php echo $name;?></div>
    <div>封面:<img src="<?php echo $row['img'];?>"></div>
    <div>视频:<video width="320" height="240" controls>
            <source src="<?php echo $row['url'];?>" type="video/mp4">
            </video></div>
    <div>标签:<?php echo $row['tab'];?></div>
<?php
    }
?>